import data.Graphe;
import data.Sommet;




public class Main {


	public static void main(String[] args){
		Graphe g=new Graphe();
		GrapheSearch gs=new GrapheSearch();
		if (args.length==0) {
			Permutation p=new Permutation();
			p.melange();
			Sommet s=p.creersommet();
			gs.IDA2(g, s);
		}
		else {

			Sommet s=g.initialiseSommet(args);
			Permutation p=new Permutation(s);
			if (p.signature()==1){
				gs.IDA2(g, s);
			}
			else {System.out.println("FAILURE");
			}



		}
	}
}


